package com.homelink.android.smstohtml.activity;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

import android.app.Activity;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environment;
import android.provider.Contacts;
import android.provider.ContactsContract;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.homelink.android.smstohtml.R;
import com.homelink.android.smstohtml.convert.ConvertThread;
import com.homelink.android.smstohtml.model.Sms;

public class SmsToHtmlActivity extends Activity implements OnClickListener {
	private Button btnConvertToHtml;
	

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		btnConvertToHtml = (Button) findViewById(R.id.btn_convert_to_html);
		btnConvertToHtml.setOnClickListener(this);
	}

	

	public void onClick(View v) {
		if (v == btnConvertToHtml) {
			
			new ConvertThread(this).execute("Test");
		}

	}
}